<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品列表</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <style>
        .layui-table-cell{
            height: auto;
        }
    </style>
</head>
<body>
<blockquote class="layui-elem-quote">商品列表</blockquote>
<form class="layui-form layui-form-pane">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">商品名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">推荐</label>
            <div class="layui-input-inline">
                <select name="recom">
                    <option value="">不限</option>
                    <option value="0">推荐</option>
                    <option value="1">不推荐</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="status">
                    <option value="">不限</option>
                    <option value="0">上架</option>
                    <option value="1">下架</option>
                </select>
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">分类</label>
            <div class="layui-input-inline">
                <select name="parentCategory" lay-filter="parentCategory">

                </select>
            </div>
            <div class="layui-input-inline">
                <select name="categoryId">

                </select>
            </div>
        </div>

        <div class="layui-inline">
            <div class="layui-input-inline">
                <button class="layui-btn layui-bg-blue" lay-submit lay-filter="search">
                    <i class="layui-icon layui-icon-search"></i>
                </button>
            </div>
        </div>

    </div>
</form>
<table id="goods-list" lay-filter="goods-list"></table>

<script type="text/html" id="bar">
    <a class="layui-btn layui-btn-sm" lay-event="edit">编辑</a>
    {{# if (d.status==1){ }}
    <a class="layui-btn layui-btn-sm layui-bg-blue" lay-event="up">上架</a>
    {{# } else { }}
    <a class="layui-btn layui-btn-sm layui-bg-red" lay-event="down">下架</a>
    {{# } }}
</script>

<script type="text/html" id="toolbar">
    <a class="layui-btn layui-btn-sm" lay-event="add">
        <i class="layui-icon layui-icon-add-1"></i>
    </a>
</script>

<script src="/layui/layui.js"></script>
<script src="/js/goods.js"></script>
</body>
</html>